package requests

import (
	"github.com/goravel/framework/contracts/http"
	"github.com/goravel/framework/contracts/validation"
)

type ParkingRequest struct {
	ParkingType string `form:"parking_type" json:"parking_type"`
	No          string `form:"no" json:"no"`
}

func (r *ParkingRequest) Authorize(ctx http.Context) error {
	return nil
}

func (r *ParkingRequest) Rules(ctx http.Context) map[string]string {
	return map[string]string{
		"parking_type": "required",
		"no":           "required",
	}
}

func (r *ParkingRequest) Messages(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *ParkingRequest) Attributes(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *ParkingRequest) PrepareForValidation(ctx http.Context, data validation.Data) error {
	return nil
}
